import http from "~/api/index.js";

// 获取所有图表信息
export const getChartsApi = () => {
  return http({
    url: "/charts",
    method: "get",
  });
};

// 获取geoJSON
export const getGeoJSONApi = () => {
  return http({
    url: "/charts/geoJSON",
    method: "get",
  });
};

// 获取中国地图数据
export const getChinaDataApi = () => {
  return http({
    url: "/charts/chinaData",
    method: "get",
  });
};

